package cn.fansunion.photo;

import java.util.List;

public interface PhotoDao extends BaseMapper {

	List<Photo> listAll();

	void add(Photo photo);

	void batchAdd(List<Photo> list);

	List<Photo> getPhotoListByProjectId(Long id);

	/** 获得一个项目所有状态的图片 */
	List<Photo> getPhotoListByProjectIdAllStatus(Long id);

	void removeByProjectId(Long id);

	void update(Photo o);

	void delete(Long id);
}
